#ifndef __SC60228_H
#define __SC60228_H

#include "gpio.h"
#include "ssp.h"

#define SC60228_SPI_NSS_HIGH()    SSP->CSCR |= SSP_CSCR_SWCS_Msk
#define SC60228_SPI_NSS_LOW()     SSP->CSCR &= ~(SSP_CSCR_SWCS_Msk)

void SC60228_Init(void);
void SC60228_Update(void);

extern uint16_t SC60228_Data;

#endif 
